package ${config.basePackage}.entity;

import com.fitness.club.common.check.DataLength;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

import com.fasterxml.jackson.annotation.JsonFormat;
/**
* <#if tableinfo.tableComment ?? > ${tableinfo.tableComment}  </#if>
*
* ${.now?string('yyyy.MM.dd HH:mm')}
*
* @author 工具自动生成    LiBingXing
*
*/
@Data
public class ${tableinfo.tableName?cap_first} implements Serializable {

private static final long serialVersionUID = 1L;

<#list tableinfo.columns as column>

     /**
     * ${column.remarks}
     *
     **/
     <#if column.columnType=='Date'>@JsonFormat(locale="zh",timezone="GMT+8", pattern="yyyy.MM.dd HH:mm")</#if><#if column.columnType=='String' && column.columnName != 'id' >@DataLength(length = ${column.columnSize}, desc = "${column.remarks}")</#if>
     private ${column.columnType} ${column.columnName};
</#list>
}
